package com.iqiyi.pps.epg.core.model.stream;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "live_stream_monitor")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class LiveStreamMonitor {

    private Long id;
    private Integer srcId;
    private String srcDesc;
    private Integer msgId;
    private String msgDesc;
    private String clientHost;
    private String progName;
    private Integer progNum;
    private Timestamp time;
    private Timestamp addTime = new Timestamp(System.currentTimeMillis());

    public static final String ERROR_TYPE ="monitorErr_code";
    public static final String User_TYPE ="alert_monitor";

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "src_id")
    public Integer getSrcId() {
        return srcId;
    }

    public void setSrcId(Integer srcId) {
        this.srcId = srcId;
    }

    @Column(name = "src_desc")
    public String getSrcDesc() {
        return srcDesc;
    }

    public void setSrcDesc(String srcDesc) {
        this.srcDesc = srcDesc;
    }

    @Column(name = "msg_id")
    public Integer getMsgId() {
        return msgId;
    }

    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }

    @Column(name = "msg_desc")
    public String getMsgDesc() {
        return msgDesc;
    }

    public void setMsgDesc(String msgDesc) {
        this.msgDesc = msgDesc;
    }


    @Column(name = "time")
    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }


    @Column(name = "client_host")
    public String getClientHost() {
        return clientHost;
    }

    public void setClientHost(String clientHost) {
        this.clientHost = clientHost;
    }

    @Column(name = "prog_name")
    public String getProgName() {
        return progName;
    }

    public void setProgName(String progName) {
        this.progName = progName;
    }

    @Column(name = "prog_num")
    public Integer getProgNum() {
        return progNum;
    }

    public void setProgNum(Integer progNum) {
        this.progNum = progNum;
    }
}
